package com.admin.service;

import com.admin.service.vo.SysRole;
import org.springframework.stereotype.Service;

import java.util.List;

public interface SysRoleService {

    SysRole createSysRole(SysRole sysRole);

    int saveSysRole(SysRole sysRole);

    int edtionSysRole(SysRole sysRole);

    int removeSysRole(SysRole sysRole);

    List<SysRole> queryById(String... id);

    List<SysRole> queryAll();

    List<SysRole> queryByAccount(String account);

    List<SysRole> queryByUserGroup(String userGroupId);

    boolean canRemove(String roleId);

    boolean canUseRoleName(String roleName);

}
